package com.clear.decorator;

/**
 * 装饰者：  包装器
 */
public abstract class Decorator implements Component {

    // 装饰器设计模式使用组合的形式进行装设
    protected Component component;

    public Decorator(Component component) {
        this.component = component;
    }

    @Override
    public void operation() {
        component.operation();
    }
}
